package com.dynamicYml.domain;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.Set;

@ConfigurationProperties(prefix = "order")
@Configuration
@Component
public class OrderProperties {
    private String name;

    private Set<User> job;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<User> getJob() {
        return job;
    }

    public void setJob(Set<User> job) {
        this.job = job;
    }
}
